<html>
<head>
    <meta charset="utf-8">
    <title>商品列表-库存式生产-开箱即用 </title>
</head>
<body>
<table border="1">
    <caption>商品列表-库存式生产-开箱即用</caption>
    <tr>
        <th>ID</th>
        <th>名称</th>
        <th>审核状态</th>
        <th>品牌名称</th>
        <th>价格</th>
        <th>分类</th>
        <th>标题</th>
        <th>图片</th>
        <th>最后修改时间</th>
        <th>是否上架</th>
    </tr>
    <#list brandMap?keys as key>
       ID: ${key}   name: ${brandMap['${key}']}
    </#list>
    <#list goodsList as goods>
    <tr>
        <td>${goods.id?c}</td>
        <td>${goods.goodsName!'-'}</td>
        <td>
            <#if goods.auditStatus?? && goods.auditStatus=='0'>
                未提交
            <#elseif goods.auditStatus?? && goods.auditStatus=='1'>
                提交审核
            <#elseif goods.auditStatus?? &&  goods.auditStatus=='2'>
                审核通过
            <#elseif goods.auditStatus?? && goods.auditStatus=='3' >
                审核不通过
            <#else>
                -
            </#if>
        </td>
        <td>
            <#if goods.brandId??>
                ${brandMap['${goods.brandId}']}
             <#else>
                -
            </#if>
        </td>
        <td>${goods.price!'-'}</td>
        <td>
            <#if goods.category3Id??>
                ${categoryMap['${goods.category3Id}']}
            <#else>
                -
            </#if>
        </td>
        <td>${goods.caption!'-'}</td>
        <td>
            <#if goods.mainPic??>
                <img src="${goods.mainPic}" width="50" height="50">
            <#else>
                -
            </#if>
        </td>
        <td>${goods.updateTime?string('yyyy年MM月dd日 HH:mm:ss')}</td>
        <td>
            <#if goods.isMarketable?? && goods.isMarketable=='1'>
                已上架
            <#else>
                未上架
            </#if>
        </td>
    </tr>
    </#list>

</table>
</body>
</html>
